package com.humanresource.action.clerkrecord;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.humanresource.domain.Result;
import com.humanresource.domain.po.clerkrecord.Inst;
import com.humanresource.service.clerkrecord.InstService;
import com.humanresource.utils.ResultUtil;

@Controller
@RequestMapping("/inst")
public class InstController {

	@Autowired
	private InstService instService;

	@RequestMapping(value = "/install", method = RequestMethod.GET, produces = "application/json;charset=UTF-8")
	@ResponseBody
	public Result<Map<String, List<Inst>>> instList() {
		return ResultUtil.success(instService.instList());
	}

}
